package com.itzdm.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itzdm.reggie.dto.DishDto;
import com.itzdm.reggie.entity.Category;
import com.itzdm.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    /**
     * 分页查询菜品
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page pageDish(Integer page, Integer pageSize, String name);


    void saveWithFlavors(DishDto dishDto);

    void startOrStop(String ids, Integer status);

    void deleteByIds(List<Long> ids);

    DishDto getByIdWithCate(Long id);

    void updateWithFlavors(DishDto dishDto);

    List<DishDto> getDishesByCategory(Dish dish);
}
